<?

$fs_exp_rep_report_entry = new Fieldset (array (
	db_conn=>$_GLOBAL_DBH,
	relation=>"exp_rep_report_entry",
	title=>"Expense Report Entry",
	fieldset=>array (
		array (name=>"id",label=>"ID",type=>"numeric",
				value=>$_REQUEST["report_entry_id"],
				input=>"hidden",primary_key=>true),
		array (name=>"report_id",label=>"Report ID",type=>"numeric",
				relation=>array(foreign=>"exp_rep_employees",key=>"id",
				field=>"name"),
				input=>"select",
				options=>"_app_select_query",
				options_params=>"SELECT id,name FROM exp_rep_employees",
				columns=>array (key=>"id",value=>"name"),
		),
		array (name=>"category_id",label=>"Category",type=>"numeric",
				relation=>array(foreign=>"exp_rep_cateogires",key=>"id",
				field=>"name"),
				input=>"select",
				options=>"_app_select_query",
				options_params=>"SELECT id,name FROM exp_rep_cateogires",
				columns=>array (key=>"id",value=>"name"),
		),
		array (name=>"expense_type_id",label=>"Expense Type",type=>"numeric",
				relation=>array(foreign=>"exp_rep_types",key=>"id",
				field=>"name"),
				input=>"select",
				options=>"_app_select_query",
				options_params=>"SELECT id,name FROM exp_rep_types",
				columns=>array (key=>"id",value=>"name"),
		),
		array (name=>"item_amoutn",label=>"Item Amount",type=>"decimcal",
				input=>"field"),
		array (name=>"item_descrition",label=>"Item Description",type=>"alphanumeric",
				input=>"text"),
		array (name=>"expense_date",label=>"Expense Date",type=>"any",
				input=>"date",value=>_app_date("date_submitted")),
		array (name=>"paid",label=>"Paid",type=>"any",
				input=>"field"),
	),
));

$fs_exp_rep_report_entry->parse ();

?>
